/**
 * 功能描述
 */

define(function(require,exports,module){
    module.exports = {
    	processCharge:function(widget,Data){
    		var gridData = [];
    		for(var i=0;i<Data.length;i++){
    			var charge = Data[i].charge;
    			Data[i].signUpRegister.charge = charge;
    			var refund = Data[i].refund;
    			Data[i].signUpRegister.refund = refund;
    			gridData.push(Data[i].signUpRegister);
    		}
    		return gridData;
    	},
    	adjustType:function(adjustTypes){
    		if(adjustTypes.length == 0){
				return "";
			}else if(adjustTypes.length == 1){
				return adjustTypes[0].value;
			}else if(adjustTypes.length >= 2){
				adjustTypes = adjustTypes.slice(0, 2);
				var status = adjustTypes[0].value + "," + adjustTypes[1].value;
				return status;
			}
    	},
    	adjustmentBtn:function(adjustTypes){
    		if(adjustTypes.length){
				for(var i=0;i<adjustTypes.length;i++){
					if(adjustTypes[i].key == "Abolished"){
						return false;
					}else{
						return true;
					}
				}
			}else{
				return true;
			}
    	}
    };
});
